package gui;
import java.awt.Button;
import java.awt.FlowLayout;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;


/*class MyMouseListener implements MouseListener
{

	public void mouseClicked(MouseEvent arg0) {
		System.out.println("CLICK: x:" + arg0.getX() + " y:" + arg0.getY());
	}
	
	@Override
	public void mouseEntered(MouseEvent arg0) {
		System.out.println("ENTER: x:" + arg0.getX() + " y:" + arg0.getY());
		
	}

	@Override
	public void mouseExited(MouseEvent arg0) {
		System.out.println("EXITED: x:" + arg0.getX() + " y:" + arg0.getY());
		
	}

	@Override
	public void mousePressed(MouseEvent arg0) {
		System.out.println("PRESSED: x:" + arg0.getX() + " y:" + arg0.getY());
		
	}

	@Override
	public void mouseReleased(MouseEvent arg0) {
		System.out.println("RELEASED: x:" + arg0.getX() + " y:" + arg0.getY());
		
	}
	
	
}

class MyFrameMenuBar extends JMenuBar
{
	
	private JMenu MainMenuFile;
	private JMenuItem MainMenuClose;
	private JMenuItem MainMenuOpen;
	private JMenuItem MainMenuSave;
	
	public MyFrameMenuBar() 
	{
		MainMenuClose = new JMenuItem("Close");
		MainMenuOpen = new JMenuItem("Open");
		MainMenuSave = new JMenuItem("Save");
		
		MainMenuFile = new JMenu("File");
		
		MainMenuFile.add(MainMenuClose);
		MainMenuFile.add(MainMenuOpen);
		MainMenuFile.add(MainMenuSave);
		
		
		this.add(MainMenuFile);
	}
	

	
	
}
*/
/*
public class MyFrame {
	
	public JFrame Frame;
	public JButton ButtonTest;
	
	
	public MyFrame()
	{
		Frame = new JFrame("My Frame");
		Frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		Frame.setLayout(new FlowLayout());
		ButtonTest = new JButton("First Button");
		ButtonTest.addMouseListener(new MyMouseListener());
		
		Frame.setJMenuBar(new MyFrameMenuBar());
		Frame.add(ButtonTest);
		Frame.pack();
		Frame.setVisible(true);
		
		
	}
	public static void main(String[] args) {
		new MyFrame();

	}

}
*/